import request from '@/utils/request'

/**
 * 获取详情
 * @param {*} code
 * @returns
 */
export function customerDetail(code) {
  return request({
    url: `/api/v1/ctmMdmCustomer/detail/${code}`,
    method: 'GET'
  })
}

/**
 * 编辑保存
 * @param {*} data
 * @returns
 */
export function customerSave(data) {
  return request({
    url: '/api/v1/ctmMdmCustomer',
    method: 'PUT',
    data
  })
}

/**
 * 获取奖惩详情
 * @param {*} id
 * @returns
 */
export function rewardsAndPunishmentDetail(id) {
  return request({
    url: `/api/v1/rewardPunishmentRoutine/${id}`,
    method: 'GET'
  })
}

/**
 * 获取小区样板间详情
 * @param {*} id
 * @returns
 */
export function prototypeRoomDetail(id) {
  return request({
    url: `/api/v1/modelRoomInfo/${id}`,
    method: 'GET'
  })
}

